﻿<?xml version="1.0" encoding="utf-8" ?>
<entities>
  <entity class="demo.Objects.Model.MenuInfo" table="menu" dal-class="demo.Objects.DAL.MenuDAL" default-orderby-express="ordernum" connectionstringname="water" subquery="true">
    <key-property name="menuId" column="menu_id" type="System.Int32" generator-type="indentity"/>
    <property name="text" column="text" type="System.String" />
    <property name="navigateUrl" column="navigate_url" type="System.String" />
    <property name="imageUrl" column="image_url" type="System.String" />
    <property name="toolTip" column="tool_tip" type="System.String" />
    <property name="imageToolTip" column="image_tool_tip" type="System.String" />
    <property name="parentId" column="parent_id" type="System.Int32" />
    <property name="target" column="target" type="System.String" />
    <property name="ordernum" column="order_num" type="System.Int32" />
    <ref-property name="parentName"
                  ref-entity="demo.Objects.Model.MenuInfo"
                  ref-property="menuId"
                  property="parentId"
                  ref-display-property="text as parentName"
                  ref-mode="leftjoin"/>
                  
  </entity>
</entities>
